package com.jwell.panrank.contract

import com.jwell.cargoapp.ui.base.IBaseView
import com.jwell.driverapp.tools.BaseSubscriber
import com.jwell.panrank.entity.WaybillBean
import com.jwell.panrank.model.WaybillModel

/**
 * Created by 76577 on 2018/6/11.
 * 运单管理
 */
class WaybillContract {
    interface View : IBaseView {

        fun showListData(data: List<WaybillBean>, isFresh: Boolean)

        fun showListDataFailed(isFresh: Boolean, str: String)

        //显示搜索总条数
        fun setSearchTotalCount(count: Int)
    }

    interface Presenter {

        fun searchListData(searchData: WaybillModel.RequestData)
    }

    interface Model {

        fun searchListData(searchData: WaybillModel.RequestData, baseSubscriber: BaseSubscriber)

    }
}